package cn.iocoder.yudao.module.trade.dal.dataobject.giftcard;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.util.Date;

/**
 * 礼品卡 领取 赠送 记录
 */
@TableName("gift_card_receive_give")
@KeySequence("gift_card_receive_give_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GiftCardReceiveGiveDO extends BaseDO {

    public static final Long LOGISTICS_ID_NULL = 0L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 礼品卡编号
     */
    private Long giftCardId;

    /**
     * 赠送人 SocialUserId   system_social_user
     */
    private Long receiveSocialUserId;

    /**
     * 赠送人 receiveMemberUserId   member_user
     */
    private Long receiveMemberUserId;

    /**
     * 赠送时间
     */
    private Date receiveTime;

    /**
     * 赠送人昵称
     */
    private String receiveNickName;

    /**
     * 赠送人头像
     */
    private String receiveAvatar;



    /**
     * 领取人 SocialUserId   system_social_user
     */
    private Long giveSocialUserId;

    /**
     * 领取人 giveMemberUserId   member_user
     */
    private Long giveMemberUserId;

    /**
     * 领取时间
     */
    private Date giveTime;

    /**
     * 领取昵称
     */
    private String giveNickName;

    /**
     * 领取头像
     */
    private String giveAvatar;


}
